/* eslint-disable @typescript-eslint/indent */
import { Table, Column, Model, DataType } from 'sequelize-typescript';

@Table({
    tableName: 'user',
})
export default class User extends Model {
    // 标示
    @Column({
        primaryKey: true,
        type: DataType.UUID,
    })
    id!: string;

    // 用户名
    @Column({
        type: DataType.STRING,
    })
    account!: string;

    // 邮箱
    @Column({
        type: DataType.STRING,
    })
    email!: string;

    // 密码
    @Column({
        type: DataType.STRING,
    })
    password!: string;
}
